<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>License Detail</title>
</head>
    <h1>License Detail</h1>
    <h2>Serial: {{ license.serial }}</h2>
    <p>Max Users: {{ license.max_users }}</p>
    <p>Active Users: {{ license.active_users }}</p>
    <h3>Active Users</h3>
    {% for user in users %}
    <tr>
        <td>{{ user.serial }}</td>
        <td>{{ user.userid }}</td>
        <td>{{ user.last_check_dt.strftime('%Y-%m-%d %H:%M:%S') }}</td>
    </tr>
    </br>

    {% endfor %}
    <a href="/">Back to Licenses</a>
</body>

</html>